package service.impl;


import dao.IUserDAO;
import model.User;
import service.IUserService;

import java.util.List;

public class UserService implements IUserService {
    private IUserDAO userDAO;

    public IUserDAO getUserDAO() {
        return userDAO;
    }

    public void setUserDAO(IUserDAO userDAO) {
        this.userDAO = userDAO;
    }

    public boolean addOrUpdateUser(User user) {
        return userDAO.addOrUpdateUser(user);
    }

    public User checkUser(User user) {
        return userDAO.checkUser(user);
    }

    public boolean guashiUser(int id) {
        return userDAO.guashiUser(id);
    }

    @Override
    public boolean jieguaUser(int id) {
        return userDAO.jieguaUser(id);
    }

    public List getGuashi() {
        return userDAO.getGuashi();
    }
}
